package grape.house.rest.estatealbum.vo;
import grape.base.service.dict.api.IDictService;
import grape.common.rest.vo.BaseIdVo;

import grape.common.service.trans.TransBy;
import grape.house.service.estate.api.IEstateService;
import grape.house.service.propertytype.api.IPropertyTypeService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 楼盘相册表
 * </p>
 *
 * @author yangwei
 * @since 2020-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="楼盘相册数据响应对象")
public class EstateAlbumVo extends BaseIdVo<String> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号，唯一")
    private String code;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "楼盘id")
    private String estateId;

    @TransBy(type = IEstateService.trans_estate_name,byFieldName = "estateId")
    @ApiModelProperty(value = "楼盘名称")
    private String estateName;

    @ApiModelProperty(value = "图片类型，字典id")
    private String estateAlbumTypeDictId;

    @TransBy(type = IDictService.trans_dictCode,byFieldName = "estateAlbumTypeDictId")
    @ApiModelProperty(value = "图片类型，字典编码")
    private String estateAlbumTypeDictCode;

    @TransBy(type = IDictService.trans_dictName,byFieldName = "estateAlbumTypeDictId")
    @ApiModelProperty(value = "图片类型，字典名称")
    private String estateAlbumTypeDictName;

    @ApiModelProperty(value = "物业类型id",required = true)
    private String propertyTypeId;

    @TransBy(type = IPropertyTypeService.trans_property_type_name,byFieldName = "propertyTypeId")
    @ApiModelProperty(value = "物业类型名称")
    private String propertyTypeName;

    @ApiModelProperty(value = "图片地址")
    private String imageUrl;

    @ApiModelProperty(value = "图片描述")
    private String imageDesc;

    @ApiModelProperty(value = "排序")
    private Integer seq;


}
